﻿package Message.Game
{
    import Framework.Serialize.*;

    public class SMarketItem extends Object
    {
        public var recordId:Number;
        public var recordType:int;
        public var code:int;
        public var itemExtend:String;
        public var amount:int;
        public var ownerPlayerId:int;
        public var ownerName:String;
        public var serverId:int;
        public var sellPrice:int;
        public var sellUnit:int;
        public var createDt:Date;
        public var timeoutDt:Date;

        public function SMarketItem()
        {
            return;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            param1.writeLong(this.recordId);
            param1.writeInt(this.recordType);
            param1.writeInt(this.code);
            param1.writeString(this.itemExtend);
            param1.writeInt(this.amount);
            param1.writeInt(this.ownerPlayerId);
            param1.writeString(this.ownerName);
            param1.writeInt(this.serverId);
            param1.writeInt(this.sellPrice);
            param1.writeInt(this.sellUnit);
            param1.writeDate(this.createDt);
            param1.writeDate(this.timeoutDt);
            return;
        }// end function

        public function __read(param1:SerializeStream) : void
        {
            this.recordId = param1.readLong();
            this.recordType = param1.readInt();
            this.code = param1.readInt();
            this.itemExtend = param1.readString();
            this.amount = param1.readInt();
            this.ownerPlayerId = param1.readInt();
            this.ownerName = param1.readString();
            this.serverId = param1.readInt();
            this.sellPrice = param1.readInt();
            this.sellUnit = param1.readInt();
            this.createDt = param1.readDate();
            this.timeoutDt = param1.readDate();
            return;
        }// end function

    }
}
